package com.silentfish.backend.codeGenerator.creator;

import com.silentfish.backend.codeGenerator.bean.GenFileInfo;
import com.silentfish.backend.codeGenerator.bean.TableInfo;
import freemarker.template.TemplateException;

import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;

public interface FileCreator {

	public static final String separator = File.separator;

	GenFileInfo createFile(TableInfo tableInfo) throws IOException, TemplateException;

	String getFileName(TableInfo tableInfo);

	String getTempletName();
	
	void setPackageName(TableInfo tableInfo);
}
